﻿using System;
namespace Gx.Model
{
    /// <summary>
    /// 合同信息表
    /// </summary>
    [Serializable]
    public partial class C_ContractInfo
    {
        private int _contractid;
        private string _contractname;
        private string _contractnum;
        private DateTime _contractstarttime;
        private DateTime _contractendtime;
        private int _companyid;
        private string _companyname;
        public int ContractId
        {
            get
            {
                return _contractid;
            }
            set { _contractid = value; }
        }
        public string ContractName
        {
            get
            {
                if (_contractname == null)
                {
                    return "";
                }
                return _contractname;
            }
            set { _contractname = value; }
        }
        public string ContractNum
        {
            get
            {
                if (_contractnum == null)
                {
                    return "";
                }
                return _contractnum;
            }
            set { _contractnum = value; }
        }
        public DateTime ContractStartTime
        {
            get
            {
                if (_contractstarttime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _contractstarttime;
            }
            set { _contractstarttime = value; }
        }
        public DateTime ContractEndTime
        {
            get
            {
                if (_contractendtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _contractendtime;
            }
            set { _contractendtime = value; }
        }
        public int CompanyId
        {
            get
            {
                return _companyid;
            }
            set { _companyid = value; }
        }
        public string CompanyName
        {
            get
            {
                if (_companyname == null)
                {
                    return "";
                }
                return _companyname;
            }
            set { _companyname = value; }
        }
    }
}
